﻿using System;

namespace jsonar
{
	internal sealed class True : Json
	{
		public readonly static True INSTANCE = new True();

		private True() { }

		public override int getValue(int val) { return 1; }
		public override uint getValue(uint val) { return 1; }
		public override long getValue(long val) { return 1L; }
		public override float getValue(float val) { return 1f; }
		public override double getValue(double val) { return 1d; }
		public override decimal getValue(decimal dft) { return 1m; }
		public override bool getValue(bool val) { return true; }
		public override string getValue(string val) { return "true"; }

		public override string ToString() { return "true"; }
	}
}
